You are here: Learning the Basics > Security > Authentication > Security Token Service

Security Token Service

This topic provides the steps for configuring TDS to use the Security Token Service (STS) authentication mechanism. This authentication mechanism is typically used for protocols such as ADFS, Azure AD, WS-Trust, SAML, etc. Below are general configuration steps. If you want specific configuration steps to use Azure AD as your STS, please see the Configure TDS with Azure AD topic.

Configuration Steps

Backup existing TDS & data

You will want to back up the TDS application state so that it can be restored to this point in case the authentication mechanism change does not complete as intended. You can skip this step if you are not applying this change to an already configured/established TDS environment.

If you are making these changes to an existing TDS instance:

  1. Completely backup your existing TDS and TDS configuration store before making any changes.

    Note: You could stand up a new instance for this purpose, if that is easier for your scenario.

Ensure Integrated Windows Authentication is disabled

The followings steps remove the Integrated Windows Authentication configuration from TDS in preparation for the switch to an STS authentication mechanism. You can skip this section if you are not making these changes to an existing TDS instance that already has Windows Authentication setup.

If you are making these changes to an existing TDS instance and it is currently using Windows Authentication:

  1. Go to App Manager > Administration > Authentication.
  2. Change the Authentication Mechanism to No Security.
  3. Click Save and then click Change to confirm your changes.

    Note: It may take a few moments for the application to save. Wait for it to complete.

  4. Disable Windows Authentication from the TDS application within IIS.
    1. Set Anonymous Authentication to Enabled.
    2. Set Windows Authentication to Disabled.
  5. Ensure App Manager loads properly.

    Note: At this point there is no security/authentication being applied to TDS.

Setup Administrator role in preparation for switch to STS

The following steps will set up a non-externally managed role for global site administrators. This role will be used to place the initial STS authenticated user in, so that after the initial switch to the STS authentication mechanism, the user will be able to continue administering App Manager. If a role like this already exists, skip to step 12 to ensure the role has all the needed privileges.

  1. Go to App Manager > Administration > Roles.
  2. Create a non-externally managed role for global site administrators.
  3. Do not check the Is role externally managed checkbox for the role.
  4. Click Save.
  5. Go to App Manager > Administration > Role Privileges.
  6. Select the Administrator, or equivalent, role.
  7. Ensure that the role has all privileges with a suggested type of Super Admin and below assigned to it.
  8. Note: There are a few privileges that do not fall into this category.

    Note: Your exact number or privileges will depend on what applications you have installed.

Setup security configuration in preparation for switch to STS

The following steps will configure App Manager to automatically add the first user provisioned through the new STS authentication mechanism to the Administrator role. This needs to be done to prevent being locked out of the application after making the initial switch to STS authentication.

  1. Go to App Manager > Administration > Security Settings.
  2. Find the New users’s default role setting and select the role that represents “Administrators” (from the previous section).

    Tip: This will ensure that the first time you load the application after changing the authentication mechanism you will be registered as an administrator with full permissions.

  3. Find the Enable just-in-time user provisioning setting and check it.
  4. Click Save.

Change the authentication mechanisms to STS

The following steps will change the authentication mechanism to STS security.

  1. Go to App Manager > Administration > Authentication.
  2. CheckSecurity Token Service, then enter in the following information:

    • STS Metadata Location - where the service is located

      Example: For Azure AD: https://login.microsoftonline.com/YOUR_TENANT_ID/federationmetadata/2007-06/federationmetadata.xml

    • Realm - the website of your Rizing Geospatial applications

      Example: https://demo.rizing.com

    • Audience URL - where the STS will reply to after it authenticates the user

      Heads Up! The Realm and Audience URL were used to set up the service and must match or there will be an error.

    • Optional: Protocol message Name and Value parameters, then click Add (the plus icon)

      Note: To remove a Protocol Message Parameter, click the remove param button (x icon).

    • Optional: To have TDS set a cookie directly before the user gets redirected to the Identity Provider, enter the Cookie Key and Cookie Value, then click Add (the plus symbol)

      Note: To remove a Redirect Response Cookie, click the remove cookie button (x icon).

  3. Click Save and then click Change to confirm your changes.

    Note: It may take a few moments for the application to save. Wait for it to complete.

  4. Load App Manager in a new browser window.
  5. The application should redirect you to your IDP’s sign in and then redirect you back to App Manager with you signed in.

    Tip: You should see your name in the upper right corner.

Remove the temporary “New user’s default role” setting

Now that you can successfully access the application as an administrator, this step will walk you through changing the “New user’s default role” setting back to the desired role.

  1. Go to App Manager > Administration > Security Settings.
  2. Find the New user’s default role setting and select the desired Role from the dropdown.

    Tip: This is the role that any new users who authenticate through your IDP will be automatically assigned to. It is typically set to a restricted user type of role, such as Standard Users.

    Note: If you do not wish to have any new users automatically assigned to a role, then select Prevent automatic role assignment (for new users).

  3. Test the application and make any additional configurations for your specific needs.

Note: You can view users who have accessed the site and adjust their role assignment from the User Roles page.